---@class UIBattleResult:UIBase
UIBattleResult = UIBase.New(PanelNames.UIBattleResult)

function UIBattleResult:Init(resultType)
    self.resultType = resultType
end
function UIBattleResult:OnCreate()
    self.btnClose = self:GetChild("btnClose")
    self.ctrlResult = self:GetController("result")
    self:RegisterOnClick(self.btnClose,self.ClickClose)

    self.ctrlResult.selectedIndex = self.resultType
end
function UIBattleResult:OnDestroy()
end
function UIBattleResult:ClickClose()
    Battle.CBattle.DestroyBattle()
    closeUI(PanelNames.UIBattleResult)
    showUI(PanelNames.UIMainPage)
end
return UIBattleResult
